package common.util;


import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

public class BoxDataUtil {

    public static String doCreateBoxParam(String tid, Map<String,String> data, String api){
        HashMap<String, Object> params = new HashMap<>();
        HashMap<String, Object> $json = new HashMap<>();
        $json.put("$tid", tid);
        $json.put("$api", api);
        $json.put("_data_", data);

        params.put("$json", $json);
        return JSON.toJSONString(params);
    }
}
